package com.lxw.dao;


import com.lxw.pojo.TUser;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface TUserMapper {
    @Select("SELECT * FROM `run`.`t_user` WHERE id = #{id}")
    List<TUser> selectUser(Integer id);
    @Update("INSERT INTO `run`.`t_user` (`sno`, `password`) VALUES (#{sno}, #{password})")
    boolean updateUser(TUser user);
    @Delete("DELETE FROM `run`.`t_user` WHERE `id` = #{id}")
    boolean detUser(Integer id);


}
